const express = require("express");
const router = express.Router();
const {
    getCtr,
    postCtr,
    putCtr,
    delCtr,
    getCtr1,
    putCtr1,
    putCtr2,getRecycle,getRecycles,postRecycle,delRecycle,delRecycles,
    postCtr1
} = require("../../../controller/admin/vacation");

//查询全部数据
router.get("/vacationsAll", getCtr);
//模糊查询
router.get("/vacations", getCtr1);

// 上班打卡
router.post("/vacations", postCtr);
router.post("/vacations1", postCtr1);

// 下班打卡
router.put("/vacations", putCtr);

// 加班
router.put("/vacations1", putCtr1);

// 调休假
router.put("/vacations2", putCtr2);

// 删除
router.delete("/vacations", delCtr);

//-----------回收站-------------
//查询全部数据
router.get("/RecycleAll", getRecycle);
//模糊查询
router.get("/Recycles", getRecycles);
//新增
router.post("/Recycleadd", postRecycle);
// 删除
router.delete("/Recycledel", delRecycle);
//恢复
router.delete("/Recycledels", delRecycles);
module.exports = router;
